package com.xyking.lambda.cart.impl;

import com.xyking.lambda.cart.Sku;
import com.xyking.lambda.cart.imp.SkuPredicate;

/**
 * 对Sku的总价是否超出2000作为判断标准.
 * @Author: ldy
 * @Date:   2020-12-27 11:52
 * @Version 1.0
 */
public class SkuTotalPricePredicate implements SkuPredicate {
	@Override
	public boolean test(Sku sku) {
		return sku.getTotalPrice() <= 2000;
	}
}
